<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>login</title>
<link href="css/login.css" type=text/css rel=stylesheet>
        
        <script>
	// 判断是登录账号和密码是否为空
	function check() {
		var usercode = $("#username").val();
		var password = $("#password").val();
		if (usercode == "" || password == "") {
			$("#message").text("账号或密码不能为空！");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
<div class="bg">   
        <div class="login">
        	<font color="red" align="center"> <%-- 提示信息--%> <span id="message">${msg}</span></font>
            <form class="loginform" action="login.action" method="post" onsubmit="return check()">
                <input class="username" id="username" name="username" type="text" placeholder="请输入账号"><br>
                <input class="password" id="password" name="password" type="password" placeholder="请输入密码"><br>
                <input class="button"    name="submitType" type="submit" value="登录">
                <br>
                <a class="re" href="toregister">注册</a>
            </form>
        </div>
    </div>
</body>
</html>